#include <system/Directory.h>
#include <windows.h>


bool Directory::create(std::string path)
{
    return ::CreateDirectory(path.c_str(), NULL) != 0;
}


bool Directory::exists(std::string path)
{
    DWORD attribs = ::GetFileAttributesA(path.c_str());

    if (attribs == INVALID_FILE_ATTRIBUTES)
        return false;
    else
        return (attribs & FILE_ATTRIBUTE_DIRECTORY);
}
